The windowActor in the CyclerHighlight was set to undefined if
this._window was null. This was causing an error when trying to set it
as a property.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4167
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1820>
if (this._clone.source)
this._clone.source.sync_visibility();
- const windowActor = this._window?.get_compositor_private();
+ const windowActor = this._window?.get_compositor_private() ?? null;
if (windowActor)
windowActor.hide();